package me.sealer.ssm.mapper;

import java.util.List;
import me.sealer.ssm.model.UserRoleExample;
import me.sealer.ssm.model.UserRole;
import org.apache.ibatis.annotations.Param;

public interface UserRoleMapper {
    int countByExample(UserRoleExample example);

    int deleteByExample(UserRoleExample example);

    int deleteByPrimaryKey(UserRole key);

    int insert(UserRole record);

    int insertSelective(UserRole record);

    List<UserRole> selectByExample(UserRoleExample example);

    int updateByExampleSelective(@Param("record") UserRole record, @Param("example") UserRoleExample example);

    int updateByExample(@Param("record") UserRole record, @Param("example") UserRoleExample example);


    void deleteByUserId(Integer userId);

    List<Integer> findRoleIdByUserId(Integer userId);

    int countByRoleId(Integer id);
}